<table cellpadding="0" cellspacing="0" width="100%"> 
	<?php
	global $SSO, $Security, $AppID, $User, $DB;
	$DB->query("select * from calendar_events where event_end_date >= now() order by event_start_date");
	while($row = $DB->fetch_row())
	{
		print "<tr>";
		print '<td><span class="TB1">' . $row['event_title'] . '</span></td>';
		print '<td><span class="T1">' . date("F d, Y g:i A",strtotime($row['event_start_date'])) . " - " . date("g:i A",strtotime($row['event_end_date'])) . '</span></td>';
		print "</tr>";
		if(date("F d, Y",strtotime($row['event_start_date'])) != date("F d, Y",strtotime($row['event_end_date']))) 
		{
			print '<td>&nbsp;</td><td>'.date("F d, Y",strtotime($row['event_end_date'])).'</td></tr>';
		}
		print '<tr>';
		print '<tr><td><span class="T1">' . $row['event_description'] . '</span></td>';
		print '<td><span class="T1"><em>' . $row['event_location'] . '</em></span></td>';
		print "</tr>";
		print "<tr><td><br></td></tr>";
	}
	?>
</table>

 
 
